/* <![CDATA[ */

function formatoNumero(e) {
		var keynum = window.event ? window.event.keyCode : e.which;
		if ((keynum == 8) || (keynum == 46)) return true;
        return /\d/.test(String.fromCharCode(keynum));
    }
function formatoNombresDescripciones(e) {
	 	var key;
	    if (e.keyCode) key = e.keyCode;
	    else if (e.which) key = e.which;
	    if (key == 95) return true;
	    if (/[^A-Za-z0-9 ]/.test(String.fromCharCode(key))) {
	        return false;
	    }else {
	    	return true;
	    }
}

function formatoTexto(e) {
	var key;
	 if (e.keyCode) key = e.keyCode;
	    else if (e.which) key = e.which;
	    if ((key == 95) || (key == 44) || (key == 59) ||(key == 46)) return true;
	    if (/[^A-Za-z0-9 ]/.test(String.fromCharCode(key))) {

	        return false;

	    }else {return true;}
}

function formatoConsultaSql(e) {
	 var key;
	 if (e.keyCode) key = e.keyCode;
	 else if (e.which) key = e.which;
	 if ((key == 95) || (key == 42) || (key == 44) || (key == 59) ||(key == 46)) return true;
	 if (/[^A-Za-z0-9 ]/.test(String.fromCharCode(key))) {
		 return false;
	 }else {
		 return true;
	 }
}
function formatoRuta(e) {
	 var key;
	 if (e.keyCode) key = e.keyCode;
	 else if (e.which) key = e.which;
	 if ((key == 95) ||  (key == 58) || (key == 42) || (key == 44) || (key == 59) ||(key == 46)||(key == 47)||(key == 92)) return true;
	 if (/[^A-Za-z0-9 ]/.test(String.fromCharCode(key))) {
		 return false;
	 }else {
		 return true;
	 }
}
function formatoJndi(e) {
	 var key;
	 if (e.keyCode) key = e.keyCode;
	 else if (e.which) key = e.which;
	 if ((key == 47)||(key == 92)) return true;
	 if (/[^A-Za-z0-9 ]/.test(String.fromCharCode(key))) {
		 return false;
	    }else {
	    	return true;
	    }
}


/* ]]> */